﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ICeFramework.Business.DataLayer
{
    public class EntityObjectValidationArgs
    {
        private string _errorCode;
        public string ErrorCode
        {
            get { return _errorCode; }
            set { _errorCode = value; }
        }

        private string _errorMessage;
        public string ErrorMessage
        {
            get { return _errorMessage; }
        }

        private IEntityObject _entityObject;
        public IEntityObject EntityObject
        {
            get { return _entityObject; }
        }

        public EntityObjectValidationArgs(string errorCode, string errorMessage, IEntityObject entityObject)
        {
            _errorCode = errorCode;
            _errorMessage = errorMessage;
            _entityObject = entityObject;
        }
    }
}
